{template Public:Page:header}
<div class="container">
  <div class="row"> 
  {template Member:Index:sidebar}
    <div class="col-lg-10 well-col-pl-30">
      <div class="row">
        <div class="well">
         <div class="row"><div class="col-lg-10"><h3>我的任务</h3></div></div>
          
            {if $list}     
			<form id="Form">
          	 <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>
                                <label>
                                <input type="checkbox" id="CheckAll" style="display:none">
                                <span class="text">ID</span></label>
                            </th>
                            <th>
                                标题
                            </th>
                            <th>
                                发布时间
                            </th>
                            <th>
                                截止日期
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                    {foreach $list $value}
                        <tr>
                            <td>
                                <label>
                     	 <input type="checkbox" name="checkbox[]" value="{echo $value['id']}" style="display:none">
                      	<span class="text checkbox">{echo $value['id']}</span></label> 
                            </td>
                            <td>
                                <a href="/task/{echo $value['id']}">{echo $value['subject']}</a>
                            </td>
                            <!-- <td>
                                {if !$value['new']}<span class="label label-success">已读</span>{else}<span class="label label-default">未读</span>{/if}
                            </td> -->
                            <td>
                                 {echo FormatDate("Y/m/d H:i:s",$value['dateline'])}
                            </td>
                            <td>
                                 {echo FormatDate("Y/m/d H:i:s",$value['endtime'])}
                            </td>
                        </tr>
                       {/foreach}
                     
                    </tbody>
                </table>
            </form>

            <div class="row">
                <div class="col-sm-6 text-right">
                  <div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
                    <ul class="pagination">
                      {if $page}{echo $page}{/if}
                    </ul>
                  </div>
          		</div>
 
          	</div>
            <!-- <div class="row">
            <div class="col-lg-12">
            <button class="btn btn-darkorange" type="submit" onclick="AllConfirm('#Form','/post/notice/delete')"><i class="fa fa-trash-o"></i>删除</button>
            
            <button class="btn btn-azure" type="submit" onclick="AllConfirm('#Form','/post/notice/setread','设置已读')"><i class="fa fa-check-square"></i>设置已读</button>
            </div>
            </div> -->
            {else}
            <ul class="list-group">
            	<div>暂无任务</div>
            </ul>
            {/if}          
          </div>
      </div>
      
  
    </div>
  </div>
</div>
     
{template Public:Page:footer}